General
Hissab supports various date and time operations.
Valid date and time formats are:
Format | Example |
---|---|
dd.mm.yyyy | |
mm.dd.yyyy | |
mm.dd.yyyy In this format, if there is ambiguity between date and month, it will use mm.dd.yyyy format | |
dd mmm yyyy | |
yyyy mmm dd | |
{date} {timezone/city} Use common timezone abbreviations to specify timezones. You can also use popular city names to specify its timezone (Preferred) | |
hh:mm:ss:ms The hour is mandatory in time format. Minutes, seconds and milliseconds are optional. | |
hh:mm am/pm If am or pm is not mentioned, it will use 24 hour format. | |
hh:mm | |
{date} {time} Use any date format with time format |
You can perform intuitive operations with dates and times.
Operation | Example |
---|---|
Add days, months, years etc to dates | |
Subtract days, months, years etc from dates | |
Similar operations can be performed with times | |
Or with combination of dates and times | |
Get difference between two dates or times. Default answer in free version will be in millisecond | |
But, You can convert it into any unit like year, days, hours etc. |
Hissab also supports these keywords to get current date or time
Keyword | Example |
---|---|
now Get current date and time | |
today Get today's date | |
tomorrow Get tomorrow's date | |
yesterday Get yesterday's date |
Note: Date formats such as mm/dd/yyyy or mm-dd-yyyy with a / or - as a separator are not supported because of its ambiguity with divide and subtract operations.
Unix epoch timestamp conversionPRO
You can convert a unix timestamp in millisecond or second to date or vice versa.